package org.csmz.xg2333;
import java.util.Scanner;

public class lj {
    public static void main(String[] args) {
        // 创建Scanner对象
        Scanner scanner = new Scanner(System.in);

        // 设置分隔符为逗号
        scanner.useDelimiter(",");

        // 提示用户输入
        System.out.println("请输入两个用逗号分隔的整数: ");

        // 读取两个整数
        int num = scanner.nextInt();
        int num2 = scanner.nextInt();

        // 输出结果
        System.out.println("结果是: " + (num + num2));

        // 关闭Scanner
        scanner.close();
    }
}
